package metalink;

import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;

public class Logout extends ActionSupport {
	public String execute() {
		HttpSession session = ServletActionContext.getRequest().getSession();
		session.invalidate();
		addActionError("Successfully logged out.. Please login to continue");
		return SUCCESS;
	}
}